package model

type Tag struct {
	ID        int64  `json:"id" gorm:"primaryKey;column:id; comment:标签id"`
	Name      string `json:"name" gorm:"uniqueIndex; column:name; not null; comment:标签名"`
	CreatedBy int64  `json:"created_by" gorm:"column:created_by; not null; comment:创建人id"`
	Symbol    string `json:"symbol" gorm:"column:symbol; not null; comment:标签符号"`
	Type      int8   `json:"type" gorm:"column:type; index; default:1; comment:标签类型: 1-支出,2-收入"`
	Timestamps
	SoftDeletes
}
